Skip to content

Commit 83c89b3

Browse files
renovate[bot]github-actions[bot]peppescg
authored
chore(deps): update dependency stacklok/toolhive-registry-server to v0.4.4 (#161)
* chore(deps): update dependency stacklok/toolhive-registry-server to v0.4.4 * chore: regenerate API client for updated registry server version * fix: generated files --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Giuseppe Scuglia <peppescg@gmail.com>
1 parent ac5c946 commit 83c89b3

File tree

4 files changed

+76
-430
lines changed

4 files changed

+76
-430
lines changed

scripts/generate-swagger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import * as path from "node:path";
88
* This is managed by Renovate and updated automatically when new versions are released.
99
* renovate: datasource=github-releases depName=stacklok/toolhive-registry-server versioning=semver
1010
*/
11-
const REGISTRY_SERVER_VERSION = "v0.3.9";
11+
const REGISTRY_SERVER_VERSION = "v0.4.4";
1212

1313
(async () => {
1414
const url = `https://raw.githubusercontent.com/stacklok/toolhive-registry-server/refs/tags/${REGISTRY_SERVER_VERSION}/docs/thv-registry-api/swagger.json`;

src/generated/sdk.gen.ts

Lines changed: 13 additions & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ import type {
66
DeleteByRegistryNameV01ServersByServerNameVersionsByVersionData,
77
DeleteByRegistryNameV01ServersByServerNameVersionsByVersionErrors,
88
DeleteByRegistryNameV01ServersByServerNameVersionsByVersionResponses,
9-
DeleteExtensionV0RegistriesByRegistryNameData,
10-
DeleteExtensionV0RegistriesByRegistryNameErrors,
119
GetExtensionV0RegistriesByRegistryNameData,
1210
GetExtensionV0RegistriesByRegistryNameErrors,
1311
GetExtensionV0RegistriesByRegistryNameResponses,
@@ -47,10 +45,6 @@ import type {
4745
PostByRegistryNameV01PublishResponses,
4846
PostRegistryV01PublishData,
4947
PostRegistryV01PublishErrors,
50-
PutExtensionV0RegistriesByRegistryNameData,
51-
PutExtensionV0RegistriesByRegistryNameErrors,
52-
PutExtensionV0RegistriesByRegistryNameServersByServerNameVersionsByVersionData,
53-
PutExtensionV0RegistriesByRegistryNameServersByServerNameVersionsByVersionErrors,
5448
} from "./types.gen";
5549

5650
export type Options<
@@ -92,30 +86,6 @@ export const getExtensionV0Registries = <ThrowOnError extends boolean = false>(
9286
},
9387
});
9488

95-
/**
96-
* Delete registry
97-
*
98-
* Delete a registry
99-
*/
100-
export const deleteExtensionV0RegistriesByRegistryName = <
101-
ThrowOnError extends boolean = false,
102-
>(
103-
options: Options<DeleteExtensionV0RegistriesByRegistryNameData, ThrowOnError>,
104-
) =>
105-
(options.client ?? client).delete<
106-
unknown,
107-
DeleteExtensionV0RegistriesByRegistryNameErrors,
108-
ThrowOnError
109-
>({
110-
security: [{ name: "Authorization", type: "apiKey" }],
111-
url: "/extension/v0/registries/{registryName}",
112-
...options,
113-
headers: {
114-
"Content-Type": "application/json",
115-
...options.headers,
116-
},
117-
});
118-
11989
/**
12090
* Get registry
12191
*
@@ -140,56 +110,6 @@ export const getExtensionV0RegistriesByRegistryName = <
140110
},
141111
});
142112

143-
/**
144-
* Create or update registry
145-
*
146-
* Create or update a registry
147-
*/
148-
export const putExtensionV0RegistriesByRegistryName = <
149-
ThrowOnError extends boolean = false,
150-
>(
151-
options: Options<PutExtensionV0RegistriesByRegistryNameData, ThrowOnError>,
152-
) =>
153-
(options.client ?? client).put<
154-
unknown,
155-
PutExtensionV0RegistriesByRegistryNameErrors,
156-
ThrowOnError
157-
>({
158-
security: [{ name: "Authorization", type: "apiKey" }],
159-
url: "/extension/v0/registries/{registryName}",
160-
...options,
161-
headers: {
162-
"Content-Type": "application/json",
163-
...options.headers,
164-
},
165-
});
166-
167-
/**
168-
* Create or update server
169-
*
170-
* Create or update a server in the registry
171-
*/
172-
export const putExtensionV0RegistriesByRegistryNameServersByServerNameVersionsByVersion =
173-
<ThrowOnError extends boolean = false>(
174-
options: Options<
175-
PutExtensionV0RegistriesByRegistryNameServersByServerNameVersionsByVersionData,
176-
ThrowOnError
177-
>,
178-
) =>
179-
(options.client ?? client).put<
180-
unknown,
181-
PutExtensionV0RegistriesByRegistryNameServersByServerNameVersionsByVersionErrors,
182-
ThrowOnError
183-
>({
184-
security: [{ name: "Authorization", type: "apiKey" }],
185-
url: "/extension/v0/registries/{registryName}/servers/{serverName}/versions/{version}",
186-
...options,
187-
headers: {
188-
"Content-Type": "application/json",
189-
...options.headers,
190-
},
191-
});
192-
193113
/**
194114
* Health check
195115
*
@@ -232,7 +152,7 @@ export const getReadiness = <ThrowOnError extends boolean = false>(
232152
>({ url: "/readiness", ...options });
233153

234154
/**
235-
* Publish server
155+
* Publish server (not supported)
236156
*
237157
* Publish a server to the registry. This server does not support publishing via this endpoint.
238158
* Use the registry-specific endpoint /{registryName}/v0.1/publish instead.
@@ -255,9 +175,9 @@ export const postRegistryV01Publish = <ThrowOnError extends boolean = false>(
255175
});
256176

257177
/**
258-
* List servers
178+
* List servers (aggregated)
259179
*
260-
* Get a list of available servers in the registry
180+
* Get a list of available servers from all registries (aggregated view)
261181
*/
262182
export const getRegistryV01Servers = <ThrowOnError extends boolean = false>(
263183
options?: Options<GetRegistryV01ServersData, ThrowOnError>,
@@ -277,9 +197,9 @@ export const getRegistryV01Servers = <ThrowOnError extends boolean = false>(
277197
});
278198

279199
/**
280-
* List all versions of an MCP server
200+
* List all versions of an MCP server (aggregated)
281201
*
282-
* Returns all available versions for a specific MCP server, ordered by publication date (newest first)
202+
* Returns all available versions for a specific MCP server from all registries (aggregated view)
283203
*/
284204
export const getRegistryV01ServersByServerNameVersions = <
285205
ThrowOnError extends boolean = false,
@@ -301,9 +221,9 @@ export const getRegistryV01ServersByServerNameVersions = <
301221
});
302222

303223
/**
304-
* Get specific MCP server version
224+
* Get specific MCP server version (aggregated)
305225
*
306-
* Returns detailed information about a specific version of an MCP server.
226+
* Returns detailed information about a specific version of an MCP server from all registries.
307227
* Use the special version `latest` to get the latest version.
308228
*/
309229
export const getRegistryV01ServersByServerNameVersionsByVersion = <
@@ -329,9 +249,9 @@ export const getRegistryV01ServersByServerNameVersionsByVersion = <
329249
});
330250

331251
/**
332-
* List servers
252+
* List servers in specific registry
333253
*
334-
* Get a list of available servers in the registry
254+
* Get a list of available servers from a specific registry
335255
*/
336256
export const getRegistryByRegistryNameV01Servers = <
337257
ThrowOnError extends boolean = false,
@@ -353,9 +273,9 @@ export const getRegistryByRegistryNameV01Servers = <
353273
});
354274

355275
/**
356-
* List all versions of an MCP server
276+
* List all versions of an MCP server in specific registry
357277
*
358-
* Returns all available versions for a specific MCP server, ordered by publication date (newest first)
278+
* Returns all available versions for a specific MCP server from a specific registry
359279
*/
360280
export const getRegistryByRegistryNameV01ServersByServerNameVersions = <
361281
ThrowOnError extends boolean = false,
@@ -380,9 +300,9 @@ export const getRegistryByRegistryNameV01ServersByServerNameVersions = <
380300
});
381301

382302
/**
383-
* Get specific MCP server version
303+
* Get specific MCP server version in specific registry
384304
*
385-
* Returns detailed information about a specific version of an MCP server.
305+
* Returns detailed information about a specific version of an MCP server from a specific registry.
386306
* Use the special version `latest` to get the latest version.
387307
*/
388308
export const getRegistryByRegistryNameV01ServersByServerNameVersionsByVersion =

src/generated/types.gen.ts

Lines changed: 19 additions & 133 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,22 @@ export type GithubComStacklokToolhiveRegistryServerInternalServiceRegistrySyncSt
4949
serverCount?: number;
5050
};
5151

52+
export type InternalApiHealthResponse = {
53+
status?: string;
54+
};
55+
56+
export type InternalApiReadinessResponse = {
57+
status?: string;
58+
};
59+
60+
export type InternalApiVersionResponse = {
61+
build_date?: string;
62+
commit?: string;
63+
go_version?: string;
64+
platform?: string;
65+
version?: string;
66+
};
67+
5268
export type ModelArgument = {
5369
choices?: Array<string>;
5470
default?: string;
@@ -248,44 +264,6 @@ export type GetExtensionV0RegistriesResponses = {
248264
export type GetExtensionV0RegistriesResponse =
249265
GetExtensionV0RegistriesResponses[keyof GetExtensionV0RegistriesResponses];
250266

251-
export type DeleteExtensionV0RegistriesByRegistryNameData = {
252-
body?: {
253-
[key: string]: unknown;
254-
};
255-
path: {
256-
/**
257-
* Registry Name
258-
*/
259-
registryName: string;
260-
};
261-
query?: never;
262-
url: "/extension/v0/registries/{registryName}";
263-
};
264-
265-
export type DeleteExtensionV0RegistriesByRegistryNameErrors = {
266-
/**
267-
* Bad request
268-
*/
269-
400: {
270-
[key: string]: string;
271-
};
272-
/**
273-
* Unauthorized
274-
*/
275-
401: {
276-
[key: string]: string;
277-
};
278-
/**
279-
* Not implemented
280-
*/
281-
501: {
282-
[key: string]: string;
283-
};
284-
};
285-
286-
export type DeleteExtensionV0RegistriesByRegistryNameError =
287-
DeleteExtensionV0RegistriesByRegistryNameErrors[keyof DeleteExtensionV0RegistriesByRegistryNameErrors];
288-
289267
export type GetExtensionV0RegistriesByRegistryNameData = {
290268
body?: {
291269
[key: string]: unknown;
@@ -346,92 +324,6 @@ export type GetExtensionV0RegistriesByRegistryNameResponses = {
346324
export type GetExtensionV0RegistriesByRegistryNameResponse =
347325
GetExtensionV0RegistriesByRegistryNameResponses[keyof GetExtensionV0RegistriesByRegistryNameResponses];
348326

349-
export type PutExtensionV0RegistriesByRegistryNameData = {
350-
body?: {
351-
[key: string]: unknown;
352-
};
353-
path: {
354-
/**
355-
* Registry Name
356-
*/
357-
registryName: string;
358-
};
359-
query?: never;
360-
url: "/extension/v0/registries/{registryName}";
361-
};
362-
363-
export type PutExtensionV0RegistriesByRegistryNameErrors = {
364-
/**
365-
* Bad request
366-
*/
367-
400: {
368-
[key: string]: string;
369-
};
370-
/**
371-
* Unauthorized
372-
*/
373-
401: {
374-
[key: string]: string;
375-
};
376-
/**
377-
* Not implemented
378-
*/
379-
501: {
380-
[key: string]: string;
381-
};
382-
};
383-
384-
export type PutExtensionV0RegistriesByRegistryNameError =
385-
PutExtensionV0RegistriesByRegistryNameErrors[keyof PutExtensionV0RegistriesByRegistryNameErrors];
386-
387-
export type PutExtensionV0RegistriesByRegistryNameServersByServerNameVersionsByVersionData =
388-
{
389-
body?: {
390-
[key: string]: unknown;
391-
};
392-
path: {
393-
/**
394-
* Registry Name
395-
*/
396-
registryName: string;
397-
/**
398-
* URL-encoded server name (e.g., \
399-
*/
400-
serverName: string;
401-
/**
402-
* URL-encoded version to retrieve (e.g., \
403-
*/
404-
version: string;
405-
};
406-
query?: never;
407-
url: "/extension/v0/registries/{registryName}/servers/{serverName}/versions/{version}";
408-
};
409-
410-
export type PutExtensionV0RegistriesByRegistryNameServersByServerNameVersionsByVersionErrors =
411-
{
412-
/**
413-
* Bad request
414-
*/
415-
400: {
416-
[key: string]: string;
417-
};
418-
/**
419-
* Unauthorized
420-
*/
421-
401: {
422-
[key: string]: string;
423-
};
424-
/**
425-
* Not implemented
426-
*/
427-
501: {
428-
[key: string]: string;
429-
};
430-
};
431-
432-
export type PutExtensionV0RegistriesByRegistryNameServersByServerNameVersionsByVersionError =
433-
PutExtensionV0RegistriesByRegistryNameServersByServerNameVersionsByVersionErrors[keyof PutExtensionV0RegistriesByRegistryNameServersByServerNameVersionsByVersionErrors];
434-
435327
export type GetHealthData = {
436328
body?: never;
437329
path?: never;
@@ -443,9 +335,7 @@ export type GetHealthResponses = {
443335
/**
444336
* OK
445337
*/
446-
200: {
447-
[key: string]: string;
448-
};
338+
200: InternalApiHealthResponse;
449339
};
450340

451341
export type GetHealthResponse = GetHealthResponses[keyof GetHealthResponses];
@@ -503,9 +393,7 @@ export type GetReadinessResponses = {
503393
/**
504394
* OK
505395
*/
506-
200: {
507-
[key: string]: string;
508-
};
396+
200: InternalApiReadinessResponse;
509397
};
510398

511399
export type GetReadinessResponse =
@@ -873,9 +761,7 @@ export type GetVersionResponses = {
873761
/**
874762
* OK
875763
*/
876-
200: {
877-
[key: string]: string;
878-
};
764+
200: InternalApiVersionResponse;
879765
};
880766

881767
export type GetVersionResponse = GetVersionResponses[keyof GetVersionResponses];

0 commit comments

Comments
 (0)